package com.dhcc.crftool.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.crftool.entity.CRFMetaData;
import com.dhcc.crftool.mapper.CRFMetaDataMapper;
import com.dhcc.crftool.service.CRFMetaDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CRFMetaDataServiceImpl extends ServiceImpl<CRFMetaDataMapper, CRFMetaData> implements CRFMetaDataService {
        @Resource
        private CRFMetaDataMapper crfMetaDataMapper;


    @Override
    public List<CRFMetaData> getByPageByItem() {
        Page<CRFMetaData> crfMetaDataPage = crfMetaDataMapper.selectPage(new Page<>(1, 3), null);
        List<CRFMetaData> records = crfMetaDataPage.getRecords();
        for (CRFMetaData i:
                records) {
            System.out.println(i);
        }

        return null;
    }

}
